<#include "../layout/main.html">
<@layout>
<form class="layui-form info-form" action="">
    <input name="id" id="id" type="hidden" value="${(data.id)!0}">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">菜单名称：</label>
            <div class="layui-input-inline">
                <input name="title" id="title"  value="${(data.title)!''}" lay-verify="required" autocomplete="off" placeholder="请输入菜单名称" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">菜单图标：</label>
            <div class="layui-input-inline">
                <input name="icon" id="icon" value="${(data.icon)!'larry-xitong'}" lay-verify="required" autocomplete="off" placeholder="请输入菜单图标" class="layui-input" type="text" disabled="">
            </div>
            <a href="javascript:" class="layui-btn layui-btn-small btnIcon" id="btnIcon">
                <i class="iconFont larry-icon ${(data.icon)!''}"></i> 图标
            </a>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">菜单类型：</label>
            <div class="layui-input-inline">
                <select name="type" id="type" lay-verify="required" lay-search="" lay-filter="type">
                    <option value="">【请选择菜单类型】</option>
                    <option value =1 <#if (data.type)?? && data.type==1>selected</#if>>模块</option>
                    <option value =2 <#if (data.type)?? && data.type==2>selected</#if>>导航</option>
                    <option value =3 <#if (data.type)?? && data.type==3>selected</#if>>菜单</option>
                    <option value =4 <#if (data.type)?? && data.type==4>selected</#if>>节点</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">上级菜单：</label>
            <div class="layui-input-inline">
                <select name="parentId" id="parentId">
                    <option value="0" <#if 0==parentId>selected</#if>>【请选择上级菜单】</option>
                    <#list menuList as item>
                    <option value="${item.id}" <#if item.id==parentId>selected</#if>>${item.title}</option>
                    <#list item.children as itemc>
                    <option value="${itemc.id}" <#if itemc.id==parentId>selected</#if>>&nbsp;&nbsp;&nbsp;|--${itemc.title}</option>
                    <#list itemc.children as itemd>
                    <option value="${itemd.id}" <#if itemd.id==parentId>selected</#if>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|--${itemd.title}</option>
                </#list>
                </#list>
                    </#list>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">URL地址：</label>
            <div class="layui-input-inline">
                <input name="url" id="url" value="${(data.url)!''}" autocomplete="off" placeholder="请输入URL地址" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">参数：</label>
            <div class="layui-input-inline">
                <input name="param" id="param" value="${(data.param)!''}" autocomplete="off" placeholder="请输入参数" class="layui-input" type="text">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">权限标识：</label>
            <div class="layui-input-inline">
                <input name="auth" id="auth" value="${(data.auth)!''}" autocomplete="off" placeholder="请输入权限标识" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">序号：</label>
            <div class="layui-input-inline">
                <input name="sortOrder" id="sortOrder" value="${(data.sortOrder)!''}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否显示：</label>
            <div class="layui-input-inline">
                <input name="isShow" id="isShow" value="${(data.isShow)!0}" checked lay-skin="switch" lay-filter="is_show" lay-text="是|否" type="checkbox">			</div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">公共菜单：</label>
            <div class="layui-input-inline">
                <input name="isPublic" id="isPublic" value="${(data.isPublic)!0}"  lay-skin="switch" lay-filter="is_public" lay-text="是|否" type="checkbox">			</div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</@layout>